<?php


//这是入口


require_once('system/route.php');
require_once('system/load.php');
//$sqlcaozuo= new SQLcaozuo;


$route=new Route();
$b=array();
$b=$route->GetRoute();

if($b)
{	


	$controller=$b["controller2"];
	// var_dump($b['url']."/".$b["controller"].'.php');die;
	require_once($b['url']."/".$b["controller"].'.php');
	$fun =$b["fun"];

	$yunxing = new $controller();
	// var_dump($yunxing);die;
	if(isset($b['canshu'])){
		$yunxing->$fun($b['canshu']);
	}else{

		$yunxing->$fun();
	}

}
require_once('system/sever.php');
$ss=new Denglu();


if(!isset($b["controller"]) and !isset($_POST['name'])){

			header("Location: ./index.php?route=Controller/shouye/ControllerShouye/index"); 
}